package com.basejace.system;

import com.basejace.system.controller.AuthorityController;
import com.basejace.system.controller.ControlController;
import com.basejace.system.controller.DepartmentController;
import com.basejace.system.controller.DictdataController;
import com.basejace.system.controller.DictgroupController;
import com.basejace.system.controller.IndexController;
import com.basejace.system.controller.LoginController;
import com.basejace.system.controller.RoleController;
import com.basejace.system.controller.UserController;
import com.jfinal.config.Routes;

/**
 * 系统管理模块的url路由配置
 * @author admin
 *
 */
public class SystemRoutes extends Routes {
	
	@Override
	public void config() {
		add("/", LoginController.class);
		//add("/login", LoginController.class, "/page");
		add("/index", IndexController.class, "/page/index");
		
		add("/system/role", RoleController.class, "/page/system/role");
		add("/system/user", UserController.class, "/page/system/user");
		add("/system/control", ControlController.class, "/page/system/control");
		add("/system/authority", AuthorityController.class, "/page/system/authority");
		add("/system/dictdata", DictdataController.class, "/page/system/dictdata");
		add("/system/dictgroup", DictgroupController.class, "/page/system/dictgroup");
		add("/system/department", DepartmentController.class, "/page/system/department");
	}

}
